package org.dromara.common.upeport.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ureport_file_tbl")
public class UreportFileTbl extends TenantEntity {


  @Serial
  private static final long serialVersionUID=1L;


  @ExcelProperty(value = "报表id")
  @NotNull(message = "报表id不能为空", groups = { EditGroup.class })
  @TableId(value = "id_")
  private Long id;

  @ExcelProperty(value = "报表名称")
  @NotBlank(message = "报表名称不能为空", groups = { AddGroup.class, EditGroup.class })
  @TableField("name_")
  private String name;

  @ExcelProperty(value = "内容")
  @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
  @TableField("content_")
  private String content;
}
